package templatemethod.general;

/**
 * @Author：LJ
 * @Description：
 * @Date: 2017/11/27
 * @Modified By:
 */
public class Concrete2 extends AbstractClass {
    private boolean isAlram = true;

    @Override
    public void doSomething() {
        System.out.println("Concrete2 doSomething");
    }

    @Override
    public void doSomething1() {
        System.out.println("Concrete2 doSomething1");
    }

    @Override
    protected boolean isAlarm() {
        return this.isAlram;
    }

    //由调用者来决定
    public void setAlram(boolean alram) {
        isAlram = alram;
    }
}
